
//show and hide
function showAndHide(hideId,showId){
	document.getElementById(hideId).style.display="none";
	document.getElementById(showId).style.display="block";

}


//set class on selected header
function selectedHeader(setClassId){
	jQuery('li.jewelHead').removeClass('selectedHeader');
	jQuery("#"+setClassId).addClass('selectedHeader');
}

//confirmation function
function confirmation(){
	var isConfirm=confirm("Are You Sure to delete?");
	return isConfirm;
}

function msgDisplay(msg){
	if(msg!=null && msg!=""){
		alert(msg);
	}
}

function digitsOnly(obj){
	obj.value=obj.value.replace(/[^\d]/g,'');
}


$(function(){	

	$( ".datepicker" ).datepicker({
		dateFormat: "yy-mm-dd",
		numberOfMonths: 1,
		buttonImage: "../images/calendar.gif",
		buttonImageOnly: true,
		showButtonPanel: true
	});
});

function checkDate(startDateId,endDateId){
	var startDate=document.getElementById(startDateId).value;
	var endDate=document.getElementById(endDateId).value;
	if(startDate==null|| startDate==""){
		alert("Please Insert Date For Searching Data");
		return false;
	}else if(endDate==null|| endDate==""){
		alert("Please Insert Date For Searching Data");
		return false;
	}
	return true;
}

function commingSoon(){
	alert("Comming Soon");
	return false;
}
